package jy.hibernate.beans;
/**
 * Right entity
 * @author tingzi
 *
 */
public class Right implements java.io.Serializable{
	private static final long serialVersionUID = -2038428378503654155L;
	/** full constructor */
	public Right( String user_name,Resources resource,Integer res_type,Integer read,
			Integer del,Integer modify){
		this.user_name=user_name;
		this.resource=resource;
		this.res_type=res_type;
		this.scan=scan;
		this.del=del;
		this.modify=modify;
	}
	//Fields 
	private Integer right_id;//����id
	private String user_name;//�û���
	private Resources resource;//��Դ����
	private Integer res_type=0;//��Դ���� 0Ϊ����Դ 1ΪӲ��Դ Ĭ��Ϊ0
	private Integer scan=0;//��Ȩ�� 0Ϊ���ɶ� 1Ϊ�ɶ�
	private Integer del=0;//ɾ��Ȩ�� 0Ϊ����ɾ�� 1Ϊ����ɾ��
	private Integer modify=0;//�޸�Ȩ�� 0Ϊ�����޸� 1Ϊ�����޸�
	public Integer getRight_id() {
		return right_id;
	}
	public void setRight_id(Integer right_id) {
		this.right_id = right_id;
	}
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	public Resources getResource() {
		return resource;
	}
	public void setResource(Resources resource) {
		this.resource = resource;
	}
	public Integer getRes_type() {
		return res_type;
	}
	public void setRes_type(Integer res_type) {
		this.res_type = res_type;
	}
	public Integer getscan() {
		return scan;
	}
	public void setscan(Integer scan) {
		this.scan = scan;
	}
	public Integer getDel() {
		return del;
	}
	public void setDel(Integer del) {
		this.del = del;
	}
	public Integer getModify() {
		return modify;
	}
	public void setModify(Integer modify) {
		this.modify = modify;
	}
	public String toString(){
		return "user_name:"+user_name+"/tresource_name:"+resource.getRes_name()+"/tres_type:"+res_type
		      +"/tscan:"+scan+"/tdel:"+del+"/tmodify:"+modify;
		
	}

}
